package com.demo.springbootdemo.domain.vo;

import com.demo.springbootdemo.domain.po.UserInfo;
import com.demo.springbootdemo.enums.UserStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "用户VO实体")
public class UserVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("详细信息(JSON)")
    private UserInfo info;

    @ApiModelProperty("状态（1：正常，2：冻结）")
    private UserStatus status;

    @ApiModelProperty("账户余额")
    private Integer balance;

    @ApiModelProperty("收货地址列表")
    private List<AddressVO> addressList;
}
